package com.huxb.usercenter.service;

import com.huxb.usercenter.dao.user.UserMapper;
import com.huxb.usercenter.domain.entity.user.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author huxb
 * @date 2020/2/8 0008 下午 4:21
 */
@Service
public class UserService {

    @Resource
    private UserMapper userMapper;

    /**
     * 根据用户Id 查询用户详情
     * @param id
     * @return
     */
    public User findUserDetailById(Integer id) {
       return userMapper.selectByPrimaryKey(id);
    }
}
